from BaseControl import BaseWebControl


class WebLineEdit(BaseWebControl):
    def __init(self, mapItem):
        super(WebLineEdit, self).__init__(mapItem)

    def typeText(self, text):
        self.clear()
        self.send_keys(text)

    def clear(self):
        self.obj().clear()

    def text(self):
        return str(self.get_attribute("value"))
